





# 4.计算所用时间
import time
def timer(func):
    def func_in():
        start_time = time.time()
        func()
        end_time = time.time()
        spend_time = (end_time - start_time)/60
        print("Spend_time:{} min".format(spend_time))
    return func_in
@timer
def test():
    # 这个函数是随便写的
    list_a = []
    for _ in range(10000000):
        list_a.append(_)
    print(len(list_a))

if __name__ == '__main__':
    test()
